package com.atguigu.seckill.config;

import org.springframework.amqp.support.converter.AbstractMessageConverter;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * description: MyRabbitConfig
 * date: 2022/12/20 21:31
 * author: MR.孙
 */

@Configuration
public class MyRabbitConfig {

    @Bean
    public AbstractMessageConverter messageConverter(){
        return new Jackson2JsonMessageConverter();
    }

}
